import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import com from './views/personal/com'
Vue.component('com',com)

// import Moment from 'moment'//引入moment包
// Vue.filter('formDate',function(time){//声明全局过滤器
//   return Moment(time).format('YYYY-MM-DD hh:mm:ss')
// })

import { get, post, put, del } from './utils/fetch'
Vue.prototype.aGet = get
Vue.prototype.aPost = post
Vue.prototype.aPut = put
Vue.prototype.aDel = del

import ElementUI from 'element-ui';//声明element-ui
import 'element-ui/lib/theme-chalk/index.css';//引入css样式
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
